/* eslint-disable no-shadow */
const state = {
  theme: '#009688',
  lanauage: 'zh-cn'
}

const mutations = {
  SET_LANAUAGE: (state, lanauage) => {
    state.lanauage = lanauage
  }
}

const actions = {
  setLanguage({ commit }, language) {
    commit('SET_LANAUAGE', language)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
